Repository navigation
webhook-gateway: integration-level delivery config - #9997
Merged
shu-hui-cash merged 5 commits intoNov 27, 2026
Merged
Conversation
Move the message expression from each subscription to the integration as message_expr, and store the rest of the design's webhook config next to it: delivery_mode, channel_expr, message_data_expr and group_key_expr. The management API checks each expression when it is written and fingerprints the whole config for operation replays. Delivery still fans out to subscriptions and only message_expr affects what is posted. The columns go into migrations 0001 and 0003 directly because the gateway schema is not deployed anywhere yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Shu Hui <shu@squareup.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Shu Hui <shu@squareup.com>
Renames check_program to check_expression and the management API's invalid_program error to invalid_expression, matching the *_expr fields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Shu Hui <shu@squareup.com>
shu-hui-cash
marked this pull request as ready for review
November 27, 2026 03:38
Signed-off-by: Shu Hui <shu@squareup.com>
Signed-off-by: Shu Hui <shu@squareup.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
The webhook gateway design puts each webhook's configuration on the integration, owned by one channel: how deliveries find their channels, what message they post, its card data, and the key that groups related deliveries. Until now the only rendering setting, the message template, sat on each subscription. Subscribers could post different text for one webhook, and the other fields had nowhere to live. This change gives the integration a single config, so the routing, card and threading work that follows has a fixed place to read it from.
Summary
webhook_gateway_integrationsgainsdelivery_mode,channel_expr,message_expr,message_data_exprandgroup_key_expr;webhook_gateway_subscriptionslosesmessage_template.PUTaccepts and returns these fields, checks every expression when it's written, and includes the whole config in the operation fingerprint. The subscriptionPUTnow accepts only a filter.message_expronce per delivery for every matching subscription. The other fields are stored and checked but not yet used in delivery.0001and0003directly, since the gateway schema isn't deployed anywhere yet.management/tests.rs, and the README covers the new fields.🤖 Generated with Claude Code